/**
 * 策略实体
 */
(function(window, angular, undefined){

	var module = angular.module('water.entity.strategy',['water.common.AJAXService']);
	
	module.service('$strategyService',function($AJAXService){
				
		/**
		 * 获取策略
		 */
		this.getList = function(key){
			var promise = $AJAXService.post("/Strategy/getList");
			return promise;
		}
		
		/**
		 * 获取平台策略
		 */
		this.getListByPlatform = function(platformId){
			var promise = $AJAXService.post("/Strategy/getListByPlatform",{platformId:platformId});
			return promise;
		}
		
	})
}(window, angular));